<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<spring:message code="label_user_name" var="labelUserName"/>
<spring:message code="label_email" var="labelEmail"/>
<spring:message code="label_password" var="labelPassword"/>
<spring:message code="button_create_account" var="buttonCreateAccount"/>
<spring:message code="label_name" var="labelName"/>
<spring:message code="label_data_create_user" var="labelDataCreateUser"/>

<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css"
          href="http://localhost:8080/resources/styles/standard.css"/>
</head>
<body>
<div id="container">
    <form:form modelAttribute="user" method="post">
        <div class="header">
            <p>

            <h2>${labelName}</h2>
            </p>
            <hr>
        </div>
        <div class="main">
            <p>
                    ${labelDataCreateUser}
            </p>

            <p>
                <label>${labelUserName}*</label>
                <form:input path="name"/>
                <form:errors path="name" class="errorSpring" id="formError"></form:errors>
            </p>

            <p>
                <label>${labelEmail}*</label>
                <form:input path="email"/>
                <form:errors path="email" class="errorSpring" id="formError"></form:errors>
            </p>
            <p>
                <label>${labelPassword}*</label>
                    <form:password path="password"/>
                <form:errors path="password" class="errorSpring" id="formError"></form:errors>
            </p>
            <div class="hr">
                <hr>
                <p>
                    <button class="btnEl">${buttonCreateAccount}</button>
                </p>
            </div>
        </div>
    </form:form>
</div>
</body>
</html>